<{include file="app/header.tpl"}>

<p class="hero-charts">
    英雄榜
</p>

<ul class="hero-title fix" id="hero-title">

    <li class="li"><a class="<{if $type == 'all'}>active<{/if}>" href="/share/sort_sharers/<{$global_shop.id}>"><em class="circle">•&nbsp;</em><span class="yellow">店铺总排名</span></a></li>
    <li class="li"><a class="<{if $type != 'all'}>active<{/if}>" href="/share/sort_sharers/<{$global_shop.id}>/my"><em class="circle">•&nbsp;</em><span class="gray">我的团队排名</span></a></li>
</ul>

<!-- 小店总排名 start -->
<ul class="shop-charts">
    <{if $type == 'all'}>
    <{if $currUser != ''}>
    <li class="li">
        <div class="left">
            <{$currUser.no}>
        </div>
        <div class="middle">
            <{if $currUser.userIcon eq ""}>
        <img class="img" src="/resource/wei/imgs/hero-charts-user.png" alt="">
            <{else}>
        <img class="img" src="<{$currUser.userIcon}>" alt="">
            <{/if}>
            <!-- 当没有头像的时候显示 start -->
            <!-- <img class="img" src="/resource/wei/imgs/hero-charts-user.png" alt=""> -->
            <!-- 当没有头像的时候显示 end -->
        </div>
        <div class="right">
            <div class="one fix">
                <span class="userName"><{$currUser.userName}></span>
                <span class="money">￥<{$currUser.incomeMoney/100|number_format:2}>元</span>
            </div>
            <div class="two">
                <p class="gray"></p>
                <p class="red" style="width: <{if ($currUser.incomeMoney/200|number_format:2) > 100}>100<{else}><{$currUser.incomeMoney/200|number_format:2}><{/if}>%;"></p>
            </div>
        </div>
    </li>
    <{/if}>
        <{foreach from=$users item=user}>
         <li class="li">
             <div class="left">
                 <{$user.no}>
             </div>
             <div class="middle">
                 <{if $user.userIcon eq ""}>
                        <img class="img" src="/resource/wei/imgs/hero-charts-user.png" alt="">
                 <{else}>
                        <img class="img" src="<{$user.userIcon}>" alt="">
                 <{/if}>
                <!-- 当没有头像的时候显示 start -->
                <!-- <img class="img" src="/resource/wei/imgs/hero-charts-user.png" alt=""> -->
                <!-- 当没有头像的时候显示 end -->
             </div>
             <div class="right">
                <div class="one fix">
                    <span class="userName"><{$user.userName}></span>
                    <span class="money">￥<{$user.incomeMoney/100|number_format:2}>元</span>
                </div>
                <div class="two">
                    <p class="gray"></p>
                    <p class="red" style="width: <{if ($user.incomeMoney/200|number_format:2) > 100}>100<{else}><{$user.incomeMoney/200|number_format:2}><{/if}>%;"></p>
                </div>
             </div>
         </li>
        <{/foreach}>
    <{else}>

        <{if $users }>
            <{foreach from=$users item=user}>
            <li class="li">
                <div class="left">
                    <{$user.no}>
                </div>
                <div class="middle">
                    <{if $user.userIcon eq ""}>
                         <img class="img" src="/resource/wei/imgs/hero-charts-user.png" alt="">
                    <{else}>
                         <img class="img" src="<{$user.userIcon}>" alt="">
                    <{/if}>
                    <!-- 当没有头像的时候显示 start -->
                    <!-- <img class="img" src="/resource/wei/imgs/hero-charts-user.png" alt=""> -->
                    <!-- 当没有头像的时候显示 end -->
                </div>
                <div class="right">
                    <div class="one fix">
                        <span class="userName"><{$user.userName}></span>
                        <span class="money">￥<{$user.incomeMoney/100|number_format:2}>元</span>
                    </div>
                    <div class="two">
                        <p class="gray"></p>
                        <p class="red" style="width: <{if ($user.incomeMoney/200|number_format:2) > 100}>100<{else}><{$user.incomeMoney/200|number_format:2}><{/if}>%;"></p>
                    </div>
                </div>
            </li>
            <{/foreach}>
        <{else}>

        <p class="team-empty">
            还没有排行
        </p>

        <{/if}>

    <{/if}>
 </ul>

<{include file="app/footer.tpl"}>
